/***********************************************************************
 * @file:     xxx.c
 * @author:   guangjieMVP
 * @github:   https://github.com/guangjieMVP
 * @version:  v1.0.0
 * @date:     2020-xx-xx
 * @brief:               
*************************************************************************/
#ifndef _STACK_NORMAL_H_
#define _STACK_NORMAL_H_

#include "abstract_stack.h"

typedef struct _stack_normal{
    abstract_stack_t super;              //继承抽象栈方法
    int *stack_buffer;                   //栈空间
    int top;                             //栈顶指针
    int size;                            //栈的大小
}stack_normal_t;

int stack_normal_init(stack_normal_t *s, int *s_buffer, int size);
int stack_normal_deinit(stack_normal_t *s);
int stack_normal_push(stack_normal_t *s, int val);
int stack_normal_pop(stack_normal_t *s, int *val);

#endif